/**
 * 作者: hxl
 * 日期: 2025-04-12 16:21:38
 * 备注: 每日签到配置表
 */
package com.motu.monstercity.server.game.commondata.act;

import io.vertx.core.json.JsonObject;

public class DailySignModel {
    protected int id; // id
    protected int type; // 分组类型
    protected int day; // 第几天
    protected String reward; // 奖励
    protected String advideoReward; // 观看广告再领取一次奖励

    public DailySignModel() {
    }

    public DailySignModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        day = obj.containsKey("day") ? obj.getInteger("day") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
        advideoReward = obj.containsKey("advideo_reward") ? obj.getString("advideo_reward") : "";
    }

    public int getId() {
        return id;
    }

    public int getType() {
        return type;
    }

    public int getDay() {
        return day;
    }

    public String getReward() {
        return reward;
    }

    public String getAdvideoReward() {
        return advideoReward;
    }

}
